476

 To get line numbers in python opened
 files, do the following:
 ----------------------------------------
 lookup = 'the dog barked'

 with open(filename) as myFile:
    for num, line in enumerate(myFile, 1):
        if lookup in line:
            print 'found at line:', num
 -----------------------------------------